package com.wzcl.app.controller;

import com.wzcl.app.model.common.RVO;
import com.wzcl.app.model.dto.WritingMethodBaseDto;
import com.wzcl.app.service.WritingMethodBaseService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * @author beingven
 * @Description 写作锦囊控制器
 * @createTime 2020年12月23日 14:57:00
 */
@RestController
@RequestMapping("/writingMethodBase")
@Api(value = "写作锦囊controller", tags = {"写作锦囊相关接口"})
public class WritingMethodBaseController {
    @Resource
    private WritingMethodBaseService writingMethodBaseService;

    @ApiOperation("新增写作锦囊")
    @PostMapping("/create")
    public RVO createWritingMethodBase(@RequestBody WritingMethodBaseDto writingMethodBaseDto){
        return RVO.success(writingMethodBaseService.createWritingMethodBase(writingMethodBaseDto));
    }
}
